 import request from '@/utils/request'

 // 词类导入
export function testUpload(data){
    return request({
        url:'word/import',
        method:'post',
        headers: { 'Content-Type': 'multipart/form-data' },
        responseType:'blob',
        data:data
    })
}

 // 关键词批量导入
 export const keywordUpload = (data) => {
     return request({
         url: `keyword/import`,
         method: 'post',
         headers: { 'Content-Type': 'multipart/form-data' },
         responseType: 'blob',
         data: data
     })
 }

 // 转写矫正批量导入
 export const transitionUpload = (data) => {
     return request({
         url: `transition/import`,
         method: 'post',
         headers: { 'Content-Type': 'multipart/form-data' },
         responseType: 'blob',
         data: data
     })
 }

 // 转写矫正批量导入
 export const tagUpload = (data) => {
     return request({
         url: `tag/import`,
         method: 'post',
         headers: { 'Content-Type': 'multipart/form-data' },
         responseType: 'blob',
         data: data
     })
 }
 // 质检模版批量导入
 export const templateUpload = (data) => {
     return request({
         url: `template/import`,
         method: 'post',
         headers: { 'Content-Type': 'multipart/form-data' },
         responseType: 'blob',
         data: data
     })
 }
